﻿<%@ Page Title="月报统计" Language="C#" MasterPageFile="~/Master/MasterPage.master"
    AutoEventWireup="True" CodeBehind="Report.aspx.cs" Inherits="TotalDrugs_Report" %>

<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabnav">
        <ul>
            <li class="active"><a href="#">月报1（国产进口比例）</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td align="right">
                    所在地区：
                </td>
                <td align="left">
                    <uc3:AreaControl ID="ddlArea" runat="server" />
                </td>
              
                <td align="right">
                    开始时间：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtStratTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                </td>
                <td align="right">
                    截止时间：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtEndTime" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                </td>
                <td rowspan="2">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查  询" OnClick="btnQuery_Click" CssClass="btn" />
                </td>
                 </tr> 
                   <tr> 
                    <td align="right">
                                医疗机构：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtHospitalName" runat="server"></asp:TextBox>
                            </td>
                  <td align="right">
                    排序字段：
                </td>
                <td align="left">
                    <asp:DropDownList ID="OrderFileds" runat="server" Width="126px">
                        <asp:ListItem Value="PurchaseAmount" Selected="True">采购金额(万元)</asp:ListItem>
                        <asp:ListItem Value="PurchaseCount">采购数量</asp:ListItem>
                        <asp:ListItem Value="GCAmount">国产金额(万元)</asp:ListItem>
                        <asp:ListItem Value="GCCount">国产数量</asp:ListItem>
                        <asp:ListItem Value="JKAmount">进口金额(万元)</asp:ListItem>
                        <asp:ListItem Value="JKCount">进口数量</asp:ListItem>
                    </asp:DropDownList>
                </td>
                 <td align="right">
                    排序方式：
                </td>
                <td align="left">
                    <asp:DropDownList ID="OrderType" runat="server" Width="126px">
                        <asp:ListItem Value="DESC">降序</asp:ListItem>
                        <asp:ListItem Value="ASC">升序</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr> 
        </table>
    </div>
    <asp:GridView ID="gvwPSLInfo" runat="server" AutoGenerateColumns="False" CssClass="mainlist"
        AllowSorting="True" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager_CompanyPS.PageSize * (AspNetPager_CompanyPS.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="rowno" HeaderText="序号" Visible="false" />
            <asp:BoundField DataField="AreaName2" HeaderText="市州" />
            <asp:BoundField DataField="AreaName" HeaderText="地区" />
            <asp:BoundField DataField="HospitalName" HeaderText="医院名称" />
            <asp:BoundField DataField="Levels1" HeaderText="医院等级1" />
            <asp:BoundField DataField="Levels2" HeaderText="医院等级2" />
            <asp:BoundField DataField="" HeaderText="卫生机构类别" />
            <asp:BoundField DataField="PurchaseAmount" HeaderText="采购总金额"  />
            <asp:BoundField DataField="PurchaseCount" HeaderText="采购总数量" />
            <asp:BoundField DataField="JKCount" HeaderText="进口体外诊断试剂数量"  />
            <asp:BoundField DataField="JKAmount" HeaderText="进口体外诊断试剂金额"  />
            <asp:BoundField DataField="JKBL" HeaderText="进口金额比例" />
            <asp:BoundField DataField="GCCount" HeaderText="国产体外诊断试剂数量" />
            <asp:BoundField DataField="GCAmount" HeaderText="国产体外诊断试剂金额"  />
            <asp:BoundField DataField="GCBL" HeaderText="国产金额比例"  />
            <asp:BoundField DataField="CCCount" HeaderText="川产体外诊断试剂数量" />
            <asp:BoundField DataField="CCAmount" HeaderText="川产体外诊断试剂金额"  />
            <asp:BoundField DataField="CCBL" HeaderText="川产金额比例"  />
        </Columns>
    </asp:GridView>
    <div class="page">
        <span style="width: 30%; float: left; text-align: left">
            <hz:HzButton ID="btnExcel1" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />
        </span><span style="width: 70%; text-align: right; float: right">
            <webdiyer:AspNetPager ID="AspNetPager_CompanyPS" runat="server" AlwaysShow="true"
                OnPageChanged="AspNetPager_CompanyPS_PageChanged">
            </webdiyer:AspNetPager>
        </span>
    </div>
    <br />
    <div class="listip">
        <ul>
            <li>说明:<asp:Label ID="lblMemo" runat="server"></asp:Label>
            </li>
        </ul>
    </div>
</asp:Content>
